package com.xz.demo;

import com.xz.demo.builder.Builder;
import com.xz.demo.builder.ConcreteBuilder1;
import com.xz.demo.director.Director;
import com.xz.demo.model.Product;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     Client   
 * @package    com.xz.demo  
 * @date   2019/11/27 18:28  
 * @explain
 */
public class Client {

    public static void main(String[] args) {
        // 创建Builder
        Builder builder = new ConcreteBuilder1();
        // 创建指挥者
        Director director = new Director(builder);
        // 指挥者创建对象
        Product construct = director.construct();
        System.out.println(construct);
    }

}
